<?php
namespace application\models;

use system\core\Model;

class SystemModel extends Model
{

    /**
     * Get the RAM info of the System
     *  
     * @return array
     */
    public function getRam()
    { 
        $query = "SELECT * FROM (SELECT * FROM `ram_log` ORDER BY `ram_id` DESC LIMIT 30) AS RAM ORDER BY `ram_id` ASC";
        
        return $this->db->fetchAll();
    }
}